/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.acheieve.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * js_acheieveEntity
 * @author 达芬奇
 * @version 2019-10-05
 */
@Table(name="${_prefix}acheieve", alias="a", columns={
		@Column(name="id", attrName="id", label="记录编号", isPK=true),
		@Column(name="cropname", attrName="cropname", label="农作物名"),
		@Column(name="achievenum", attrName="achievenum", label="收成量"),
		@Column(name="state", attrName="state", label="状态"),
	}, orderBy="a.id DESC"
)
public class Acheieve extends DataEntity<Acheieve> {
	
	private static final long serialVersionUID = 1L;
	private String cropname;		// 农作物名
	private Double achievenum;		// 收成量
	private Integer state;		// 状态
	
	public Acheieve() {
		this(null);
	}

	public Acheieve(String id){
		super(id);
	}
	
	@Length(min=0, max=255, message="农作物名长度不能超过 255 个字符")
	public String getCropname() {
		return cropname;
	}

	public void setCropname(String cropname) {
		this.cropname = cropname;
	}
	
	public Double getAchievenum() {
		return achievenum;
	}

	public void setAchievenum(Double achievenum) {
		this.achievenum = achievenum;
	}
	
	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}
	
}